package com.java1412.user.controller;

import com.java1412.user.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author java1412
 * @since 2025-05-14 14:28
 */
@RestController
@RequestMapping(value = "/api/v1/user")
public class UserController {

    @Resource
    private UserService userService;

    @GetMapping(value = "/findById")
    public Object findById(
            @RequestParam(value = "id") Integer id
    ) {
        return userService.findById(id);
    }
}
